#操作文件的函数 filename,content
def write_file(filename,content):
    with open(filename,'w') as fw: #打开文件写入后并关闭文件
        fw.write(content)


write_file("test1","i love you")
